package com.ask.forMe.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("orders")
public class Order {
    public static final Integer STATUS_PAYMENT = 0; // 代付款
    public static final Integer STATUS_GROUP_BUYING = 1; // 拼团中
    public static final Integer STATUS_DELIVERY = 2; // 待收货
    public static final Integer STATUS_REVIEW = 3; // 待评价
    public static final Integer STATUS_CANCEL = 4; // 取消

    private Long id;
    private Long userId;
    private Long itemId;
    private Integer quantity;
    private Integer status;
    private String orderNo;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}